﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace PSE.Framework.Versions.Common.Entities
{
    [DataContract]
    public class Product
    {
        [DataMember]
        public string Name { get; set; }
        [DataMember]
        public int MajorVersion { get; set; }
        [DataMember]
        public IList<Module> Modules { get; set; }

        public Product()
        {
            this.Modules = new List<Module>();
        }

        public override string ToString()
        {
            return string.Format("{0}-v{1}", this.Name, this.MajorVersion);
        }
    }
}